

.modal {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: scroll;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    outline: none;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
    animation: opacity .3s ease;
}

.content {
    /* display: flex;
    justify-content: center; */
    box-sizing: border-box;
    margin: 120px auto;
    max-width: 700px;
    width: max-content;
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    animation: transform-close 1s linear;
    transform-origin: 700px 0px;
    opacity: 0;


}

.content.active {
    opacity: 1;
    animation: transform-open .8s ease;
}

@keyframes transform-open {
    from {
        transform: scale(0);
    }

    40% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(0.85);
    }

    80% {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

@keyframes opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .content {
        width: auto;
        margin: 120px 20px;
    }
}


/* 
.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    overflow: scroll;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.content {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50%;
    max-width: 630px;
    min-width: 320px;
    height: auto;
    z-index: 2000;
    visibility: hidden;
    backface-visibility: hidden;
    overflow-y: scroll;
    transform: translateX(-50%) translateY(-50%);
 
}

.content.active {
    visibility: visible;
}
 */
